package com.ybwh.springboot1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

import lombok.extern.slf4j.Slf4j;

/**
 * 消息系统移动端接口启动类
 *
 */
@Slf4j
@SpringBootApplication(scanBasePackages = { "com.ybwh.springboot1" })
public class Application {

	public static void main(String[] args) {

		ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);

		String configPath = context.getEnvironment().getProperty("spring.config.location");
		String tomcatPort = context.getEnvironment().getProperty("server.port");

		log.info("Server start success!listen on {},config file is {}", tomcatPort, configPath);

	}

}
